package com.cloud.utils;

/**
 * @ClassName: GlobalMsgCode
 * @Description: 全局返回码
 * @Version: v1.0.0
 * @Author: yangyuwei
 * @Date: 2019/11/29 16:25
 * Modification History:
 * Date             Author      Version     Description
 * -------------------------------------------------------------
 * 2019/11/29      yangyuwei      v1.0.0      创建
 */
public class GlobalMsgCodeConstant {

    /**************************请求头变量名*************************************/
    public static final String TOKEN_HEADER = "Authorization";
    public static final String ACCOUNT_ID = "accountId";
    public static final String CO_ID = "coId";
    public static final String CLIENT_CO_ID = "clientCoId";
    public static final String USER_NAME = "userName";
    public static final String REMOTE_IP = "ip";
    public static final String TOKEN_TYPE = "type";
    public static final String APP_ID = "appid";
    public static final String TRACE_ID = "trace-id";
    //双中心的traceId，X-B3-TraceId
    public static final String DOUBLE_CENTER_TRACE_ID = "X-B3-TraceId";
    public static final String SPAN_ID = "span-id";
    public static final String PARENT_SPAN_ID = "parent-id";
    public static final String CUSTOM_DATA = "custom";
    public static final String ROOT = "root";

    /***************************公钥私钥**************************************************/
    public static final String REDIS_USER_PRI_KEY = "AG:AUTH:JWT:PRI";
    public static final String REDIS_USER_PUB_KEY = "AG:AUTH:JWT:PUB";
}
